package com.bdqn.zhang.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book {
   private Integer id;
   private String category;
   private String title;
   private String summary;
   private String uploaduser;
   private Integer categoryid;
   @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private Date createdate;

//   public Book(){
//
//   }
//
//   public Book(Integer id, String title) {
//      this.id = id;
//      this.title = title;
//   }
//
//   public Book(Integer id, String title, String summary, String uploaduser, Date createdate, Integer categoryid) {
//      this.id = id;
//      this.title = title;
//      this.summary = summary;
//      this.uploaduser = uploaduser;
//      this.createdate = createdate;
//      this.categoryid = categoryid;
//   }
}
